var curry = function(fn, args){
    args = args || []
    return function () {
        var newAgrs = args.concat(Array.from(arguments))
        if (newAgrs.length < fn.length) {
            return curry.call(null, fn, newAgrs)
        } else {
            return fn.apply(null, newAgrs)
        }
    }
}
exports = module.exports = curry